<template>
<h3>{{ itbanzhan.name }}</h3>
<p>{{ itbanzhanContent }}</p>
</template>
<script>

export default{
    data(){
        return{
            itbanzhan:{
                name:"百战程序员",
                content:["前端","Java","python"]
            }
        }
    },
    //计算属性
    computed:{
        itbanzhanContent(){
            return this.itbanzhan.content.length>0?"YES":"NO"
        }
    }
}

</script>